export const echartSize = (size, defaultWidth = 1920) => {
    let clientWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
    if(!clientWidth) {
        return  size;
    }
    let scale = (clientWidth / defaultWidth);
    return Number((size * scale).toFixed(3));
}
